/**
 * 实例控制器
 */
angular
.module('myApp')
.controller('itemDemoController', function($scope, $routeParams, classManager) {
  classManager.getCourse($routeParams.id, 4)
    .then(function(data) {
      if (data.length > 0) {
        $scope.data = data[0];
      }
    });
});
 